<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
      .gold {
          color: gold;
      }
  </style>
</head>
<body>
  <div id="app">
      <div v-for="(item,index) in list" :class="index == 0 ? 'gold':''">{{item}} --- {{index}}</div>
  </div>
  <script src="./vue.js"></script>
  <script>
    var vm = new Vue({
      el:'#app',
      data:{
          list: [
              '金桔柠檬',
              '奶盖玛奇朵',
              '手摇西瓜冻'
          ]
      },
      methods:{
      }
     });
  </script>
</body>
</html>
